#!/bin/bash
# https://app.yinxiang.com/shard/s22/nl/4928451/ea347a17-ae87-4853-9e49-ce2a2de73196

FILE1=$HOME/Documents/repo-research/compAppr/compAppr.pdf
DESTINATION1=/media/a/DATA/data-yun-T3640/jianguoyun/Nutstore/working
$HOME/.df/dotfiles/scripts/copy_file.sh $FILE1 $DESTINATION1

FILE2=$HOME/.df/dotfiles/vim/UltiSnips/tex_ganx.snippets
DESTINATION2=$HOME/.df/UltiSnips
$HOME/.df/dotfiles/scripts/copy_file.sh $FILE2 $DESTINATION2

FILE3=$HOME/.df/dotfiles/scripts/copy_files.sh
DESTINATION3=$HOME/.df/scripts
$HOME/.df/dotfiles/scripts/copy_file.sh $FILE3 $DESTINATION3
# echo "Revise $FILE3 on $(date +%y%m%d-%H)"

FILE4=$HOME/.df/dotfiles/vim/UltiSnips/all.snippets
DESTINATION4=/home/a/.df/UltiSnips
$HOME/.df/dotfiles/scripts/copy_file.sh $FILE4 $DESTINATION4
# echo "Revise $FILE4 on $(date +%y%m%d-%H)"

FILE5=$HOME/Documents/repo-research/sddsp/sddsp.pdf
DESTINATION5=/media/a/DATA/data-yun-T3640/jianguoyun/Nutstore/working
$HOME/.df/dotfiles/scripts/copy_file.sh $FILE5 $DESTINATION5

FILE6=$HOME/.df/dotfiles/scripts/config/crontab_main
DESTINATION6=/home/a/.df/scripts/config
$HOME/.df/dotfiles/scripts/copy_file.sh $FILE6 $DESTINATION6

# FILE7=*.sgf
# SOURCE7=~/Downloads/
# DESTINATION7=/media/a/DATA/data-yun-T3640/jianguoyun/Nutstore/weiqipu/yike
# move_files $SOURCE7 $FILE7 $DESTINATION7

FILE8=$HOME/Documents/repo-research/ap/ap.pdf
DESTINATION8=/media/a/DATA/data-yun-T3640/jianguoyun/Nutstore/working
$HOME/.df/dotfiles/scripts/copy_file.sh $FILE8 $DESTINATION8

FILE9=$HOME/Documents/repo-research/dpp/dpp.pdf
DESTINATION9=/media/a/DATA/data-yun-T3640/jianguoyun/Nutstore/working
$HOME/.df/dotfiles/scripts/copy_file.sh $FILE9 $DESTINATION9

# mv ~/Downloads/*.sgf ~/Downloads/yike/

# directory containing the files
source_dir="$HOME/Downloads/"
# destination directory
destination_dir="/media/a/DATA1/weiqi/yike/"

# check if there are any .sgf files in the source directory
files=$(find "$source_dir" -maxdepth 1 -name "*.sgf" -print -quit)

if [[ -n $files ]]; then
    # if files are found, move them
    mv "$source_dir"/*.sgf "$destination_dir"
else
    echo "no .sgf files to move."
fi

# find "$HOME/Downloads/yike" -type f -name '*标准*.sgf' -exec rm -f {} +
# Define the directory to search in
# directory="$HOME/Downloads/yike/"
# 
# # Check if .sgf files exist in the directory
# if find "$directory" -type f -name '*标准*.sgf' -print -quit | grep -q .; then
#     echo ".sgf files found. Executing command..."
#     # Command to execute if .sgf files exist
#     find "$directory" -type f -name '*标准*.sgf' -exec rm -f {} +
# else
#     echo "No .sgf files to move."
# fi

~/.df/dotfiles/scripts/copy_files_directory.sh ~/Documents/repo-research/sddsp/sddsp_numerical/csv_results ~/Documents/repo-research/nbs/sddsp/data_analysis/csv_results
~/.df/dotfiles/scripts/copy_files_directory.sh ~/Documents/repo-research/sddsp/sddsp_numerical/csv_data ~/Documents/repo-research/nbs/sddsp/data_analysis/csv_data
